package cn.skyisazure.metacompare.metaVo;

import cn.skyisazure.metacompare.sqlcompare.mysql.MysqlColumnType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * 字段 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
@Accessors(chain = true)
public class MetaColumnBaseVO {

    private String defaultValue;

    private String tableKey;

    private String relationKey;

    private String description;

    private Boolean uniqueFlag;

    private Boolean nullable;

    private Map<String, Object> config;

    private Integer sort;

    private MysqlColumnType type;

    private String code;

    private String name;

    /*null   static  expression*/
    private String defaultValueMode;

    private String comment;

    private Boolean foreignKeyFlag;

    private Boolean treeParentFlag;

    private SystemColumnTypeEnum systemFieldType;

    private Map<String, Object> validations;

    private Map<String, Object> validationErrors;

    private Long appId;
    private Integer env;
    private String ver;
    private Boolean latest;
    private String queryKey;

}
